240aaaa41b5656a36ad07bf142bd54a110e9e62d,Apromore-OSGI-Bundles/bpmntk-osgi/src/main/java/au/edu/qut/bpmn/helper/GatewayMap.java,GatewayMap,createMultipleTokenGenerator,#MultipleTokenGen#,776

Before Change


                }

//            now we can add a new outgoing flow from the AND to the loop-join
            this.addFlow(xor, loopInjection, loopInjection, xor).setLoop();

//            then we redirect all the loop incoming flows of the loop-join to the new AND on the BPMN diagram
            for( BPMNEdge<? extends BPMNNode, ? extends BPMNNode> ie : new HashSet<>(bpmnDiagram.getInEdges(loopInjection)) )

After Change


            }

//            now we can add a new outgoing flow from the XOR to the loop-join
            finalInjection = this.addFlow(xor, loopInjection, loopInjection, xor);
            finalInjection.setLoop();
            injections.clear();
            injections.add(finalInjection);